package com.xiongjie.ClusterLimit.listener;

import org.infinispan.notifications.Listener;
import org.infinispan.notifications.cachemanagerlistener.annotation.ViewChanged;
import org.infinispan.notifications.cachemanagerlistener.event.ViewChangedEvent;

@Listener
public class ClusterLimitManagerListener {

   @ViewChanged
   public void viewChanged(ViewChangedEvent event) {
      System.out.printf("---- 集群视图改变: %s ----\n", event.getNewMembers());
   }
}
